package com.ontheroad.news.service;

import cn.modoumama.service.base.BaseService;
import com.ontheroad.api.request.ActivityRequest;
import com.ontheroad.api.response.Response;
import com.ontheroad.news.model.NewsModel;
import org.springframework.remoting.service.annotation.RemoteService;

/**
 * Created by kedong on 2017/12/9 0009.
 */
@RemoteService
public interface NewsService extends BaseService<NewsModel, Integer> {

    @Override
    void insert(NewsModel newsModel);

    @Override
    int updateById(NewsModel newsModel);

    void push(NewsModel model);

    /**
     * 活动评论
     *
     * @param request
     * @return
     * @throws Exception
     */
    Response list(ActivityRequest request) throws Exception;

    NewsModel save(NewsModel model);
}
